from itertools import chain

lst = [1, 2, 3]
dict_ = {
    "a": 1,
    "b": 2
}


def my_chain(*args, **kwargs):
    for my_iterable in args:
        yield from my_iterable
        # for value in my_iterable:
        #     yield value


for value in my_chain(lst, dict_, range(1, 5)):
    print(value)